#ifndef CLIENT_H
#define CLIENT_H
#include <my_header.h>

typedef struct train_s{
 int type;
 int length;
 char data[4096];
}train_t;
int sendMsg(int sockfd,char *buf);
int recvMsg(int sockfd,char *buf);
int recvn(int sockfd,void *buf,int n);
int recvFile(int sockfd);
int sendFile(int sockfd,char *fileName);
int formVertify(const char *buf);//验证命令格式的头文件
#endif
